/**
 * Copyright (C) 2017-2018 pinganfang, Inc. All Rights Reserved.
 */
package com.pingan.haofang.searchcloud.api.route;

/**
 * Collection注册服务
 *
 * @author huhailiang937
 * @date 2017年4月7日下午4:39:13
 * @since 1.0.0
 */
public interface IndexRouteRegister {

    /**
     * 寻找 Collection路由
     * @param collectionRouteKey
     * @return
     *
     */
    IndexRoute discover(String collectionRouteKey);
    
    
    /**
     * Collection路由注册服务
     *
     * @param indexRoute
     * @return
     */
    boolean register(IndexRoute indexRoute);

    

}
